/*
* pps_bom
*/
package com.pitop.assembly.api;

import com.pitop.assembly.entity.AssemblyCategory;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * 组件类型 api请求熔断器 熔断实现
 *
 * @author berton
 */
@Component
public class AssemblyCategoryFeignApiImpl implements AssemblyCategoryFeignApi {
    /**
     * 查询AssemblyCategory一个详情信息
     *
     * @param id
     * @param code 编码
     * @return AssemblyCategory
     */
    @Override
    public AssemblyCategory load(@RequestParam("id") Long id, @RequestParam("code") String code) {
        return new AssemblyCategory();
    }

    /**
     * 查询AssemblyCategory一个详情信息,(将查询关联数据)
     *
     * @param id
     * @param code 编码
     * @return AssemblyCategory
     */
    @Override
    public AssemblyCategory get(@RequestParam("id") Long id, @RequestParam("code") String code) {
        return new AssemblyCategory();
    }


    /**
     * 根据条件id查询AssemblyCategory一个详情信息
     *
     * @param id
     * @return AssemblyCategory
     */
    @Override
    public AssemblyCategory loadById(@RequestParam("id") Long id) {
        return new AssemblyCategory();
    }

    /**
     * 根据条件code查询AssemblyCategory一个详情信息
     *
     * @param code 编码
     * @return AssemblyCategory
     */
    @Override
    public AssemblyCategory loadByCode(@RequestParam("code") String code) {
        return new AssemblyCategory();
    }

    /**
     * 根据条件name查询AssemblyCategory一个详情信息
     *
     * @param name 名称
     * @return AssemblyCategory
     */
    @Override
    public AssemblyCategory loadByName(@RequestParam("name") String name) {
        return null;
    }

    /**
     * 根据条件id查询AssemblyCategory一个详情信息,(将查询关联数据)
     *
     * @param id
     * @return AssemblyCategory
     */
    @Override
    public AssemblyCategory getById(@RequestParam("id") Long id) {
        return new AssemblyCategory();
    }

    /**
     * 根据条件code查询AssemblyCategory一个详情信息,(将查询关联数据)
     *
     * @param code 编码
     * @return AssemblyCategory
     */
    @Override
    public AssemblyCategory getByCode(@RequestParam("code") String code) {
        return new AssemblyCategory();
    }

    /**
     * 查询AssemblyCategory信息集合
     *
     * @return 分页对象
     */
    @Override
    public List<AssemblyCategory> list(@RequestBody AssemblyCategory assemblyCategory, String isShowAll, int curPage, int pageSize) {
        return new ArrayList();
    }

    /**
     * 查询AssemblyCategory信息集合
     *
     * @return 分页对象
     */
    @Override
    public List<AssemblyCategory> listByPk(Long id, String code, int curPage, int pageSize) {
        return new ArrayList();
    }

    @Override
    public Integer count(@RequestParam("id") Long id, @RequestParam("code") String code) {
        return 0;
    }

    @Override
    public Integer count(@RequestBody AssemblyCategory assemblyCategory) {
        return 0;
    }

    /**
     * 创建AssemblyCategory
     *
     * @return AssemblyCategory
     */
    @Override
    public AssemblyCategory build(@RequestBody AssemblyCategory assemblyCategory) {
        return new AssemblyCategory();
    }

    /**
     * 修改AssemblyCategory
     *
     * @return AssemblyCategory
     */
    @Override
    public AssemblyCategory modify(@RequestBody AssemblyCategory assemblyCategory) {
        return new AssemblyCategory();
    }

    @Override
    public AssemblyCategory updateState(@RequestParam("code") String code, @RequestParam("state") String state) {
        return null;
    }

    /**
     * 删除AssemblyCategory
     */
    @Override
    public void delete(@RequestParam("id") Long id, @RequestParam("code") String code) {
        return;
    }
}
